#ifndef __CLIENT_H__
#define __CLIENT_H__

#include "head.h"
#include "md5.h"

#define READ_DATA_SIZE  1024
#define MD5_SIZE        16
#define MD5_STR_LEN     (MD5_SIZE * 2)

int clientLogin(int sockFd);
int clientCd(int sockFd, char *ss);
int clientCMD(int sockFd);
int clientPwd(int sockFd, char *ss);
int clientLs(int sockFd, char *ss);
int clientUpload(int sockFd, char *fileName);
int clientDownload(int sockFd, char *ss);
int clientRm(int sockFd, char *ss);
int clientMkdir(int sockFd, char *ss);

int Compute_file_md5(const char *file_path, char *value);
int sendFile(int sockFd, const char *fileName);
int recvFile(int sockFd, const char *filename);
int CMDtype(const char *ss, char *cmd, char *arg);

#endif
